package org.dealpdf.model;

import lombok.Data;

@Data
public class OutboundDetail {
    private String orderId;
    private String detailId;
    private String productName;
    private String unit;
    private double quantity;
    private double unitPrice;

    // 默认构造函数
    public OutboundDetail() {
    }

    // 全参数构造函数
    public OutboundDetail(String orderId, String detailId, String productName, String unit, double quantity, double unitPrice) {
        this.orderId = orderId;
        this.detailId = detailId;
        this.productName = productName;
        this.unit = unit;
        this.quantity = quantity;
        this.unitPrice = unitPrice;
    }

    // Getter 和 Setter
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getDetailId() {
        return detailId;
    }

    public void setDetailId(String detailId) {
        this.detailId = detailId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    @Override
    public String toString() {
        return "OutboundDetail{" +
                "orderId='" + orderId + '\'' +
                ", detailId='" + detailId + '\'' +
                ", productName='" + productName + '\'' +
                ", unit='" + unit + '\'' +
                ", quantity=" + quantity +
                ", unitPrice=" + unitPrice +
                '}';
    }
}